﻿@using GigaSite.Web.Classes
@* Контрол навигационной цепочки - хлебной крошки *@

@{
    var items = (IList<NavigationChainItem>) ViewBag.NavigationChain;
    int count = 0;
}

<div class="navigationChain">
    @foreach(var navigationItem in items)
    {
        count++;
        <span class="navigationChainItem">
            @if (navigationItem.Active)
            {
                @navigationItem.Title
            }
            else
            {
                <a href="@navigationItem.Url" title="@navigationItem.Title">@navigationItem.Title</a>
            }
        </span>
        if (count < items.Count)
        {
            <span class="navigationItemSeparator">
                >
            </span>    
        }
    }
</div>